<template>
    <div>
        文章详情
    </div>
</template>

<script>
import { articleDetail } from '../../api/article'
export default {
    data() {
        return {
            id: '',
        };
    },
    mounted() {
        this.id = this.$route.params.id
        this.articleDetail();
    },
    methods: {
        async articleDetail(){
            let res = await articleDetail(this.id)
            console.log(res);
        }
    },
};
</script>

<style scoped >

</style>
